// pages/detail/detail.js
Page({
  data:{},
  onLoad:function(options){
    var that = this;
    wx.request({
  url: 'https://image.wertp.cn/api/photo/detail/id/' + options.id, //仅为示例，并非真实的接口地址
  header: {
      'content-type': 'application/json'
  },
  success: function(res) {
    var data = res.data;
    that.setData({
      photos : data.data.photo,
    })
    // console.log(data.data.photo)
  }
})
  },
  onReady:function(){

  },
  onShow:function(){
 
  },
  onHide:function(){

  },
  onUnload:function(){

  }
})